package bs.jizhang.controller;

//自定义异常类携带数据
public class BusinessException extends RuntimeException {
    private Object data;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Object data) {
        super(message);
        this.data = data;
    }

    public Object getData() {
        return data;
    }
}
